﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace JSales
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new MainMDI());
            LoginForm login =new LoginForm();
            login.ShowDialog();
            if (login.DialogResult==DialogResult.OK)
            {
                login.Close();
                //加载汉化资源
                System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN");
                Application.Run(new MainMDI());
            }
        }
    }
}
